#ifndef _NODE_H_
#define _NODE_H_

#ifdef _DEBUG
#include "Assert.h"
#endif

#include "../xobjCommon/common_types.h"

struct SNode
{
    float m_Idx;
    float m_Count;
};

IDH_CALL
SNode * Node(SNode *pNode)
{
#ifdef _DEBUG
    _ASSERT(pNode != NULL);
#endif

    pNode->m_Idx   = -1.0f;
    pNode->m_Count =  0.0f;

    return pNode;
}

IDH_CALL
SNode * Node(SNode *pNode, float idx, float count)
{
#ifdef _DEBUG
    _ASSERT(pNode != NULL);
#endif

    pNode->m_Idx   = idx;
    pNode->m_Count = count;

    return pNode;
}

#endif // _NODE_H_